package com.xiaobai.netease_news.model;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 2015/6/24 0024.
 */
public class Tlist {
    private String template;
    private String topicid;
    private boolean hasCover;
    private String alias;
    private String subnum;
    private int recommendOrder;
    private int isNew;
    private String img;
    private int isHot;
    private boolean hasIcon;
    private String cid;
    private String recommend;
    private boolean headLine;
    private long playCount;
    private String color;
    private int bannerOrder;
    private String tname;
    private String ename;
    private Radio radio;
    private String showType;
    private String tid;

    public void parseJSON(JSONObject json) {
        template = json.optString("template");
        topicid = json.optString("topicid");
        hasCover = json.optBoolean("hasCover");
        alias = json.optString("alias");
        subnum = json.optString("subnum");
        recommendOrder = json.optInt("recommendOrder");
        isNew = json.optInt("isNew");
        img = json.optString("img");
        isHot = json.optInt("isHot");
        hasIcon = json.optBoolean("hasIcon");
        cid = json.optString("cid");
        recommend = json.optString("recommend");
        headLine = json.optBoolean("headLine");
        playCount = json.optLong("playCount");
        color = json.optString("color");
        bannerOrder = json.optInt("bannerOrder");
        tname = json.optString("tname");
        ename = json.optString("ename");
        showType = json.optString("showType");
        tid = json.optString("tid");
        JSONObject radios = json.optJSONObject("radio");
        radio = new Radio();
        radio.parseJSON(radios);

    }

    public String getTemplate() {
        return template;
    }

    public String getTopicid() {
        return topicid;
    }

    public boolean isHasCover() {
        return hasCover;
    }

    public String getAlias() {
        return alias;
    }

    public String getSubnum() {
        return subnum;
    }

    public int getRecommendOrder() {
        return recommendOrder;
    }

    public int getIsNew() {
        return isNew;
    }

    public String getImg() {
        return img;
    }

    public int getIsHot() {
        return isHot;
    }

    public boolean isHasIcon() {
        return hasIcon;
    }

    public String getCid() {
        return cid;
    }

    public String getRecommend() {
        return recommend;
    }

    public boolean isHeadLine() {
        return headLine;
    }

    public long getPlayCount() {
        return playCount;
    }

    public String getColor() {
        return color;
    }

    public int getBannerOrder() {
        return bannerOrder;
    }

    public String getTname() {
        return tname;
    }

    public String getEname() {
        return ename;
    }

    public Radio getRadio() {
        return radio;
    }

    public String getShowType() {
        return showType;
    }

    public String getTid() {
        return tid;
    }
}
